Sine fits using fit_pandas_GUI()

You can try this notebook live by lauching it in Binder.This can take a while to launch, be patient. Binder.

First we import pandas, numpy and pandas_GUI and then create some data to fit.

Default plot of the data set

This is the plot made using the default settings of plot_pandas_GUI(). See step-by-step example.

Figure 1: A plot of the noisy sine wave data. This should display a live plotly plot. If you are running a live notebook and do not see the plot make sure you have trusted the notebook (button near the kernel name and status).

Fit the data with a sine function

The fit was done by running the command fit_pandas_GUI() in an empty code cell.

1. On the first tab

the data set, which columns contained the X- and Y-data and a name for the trace were chosen.

Fit tab 1

2. On the second tab

the the default 'none' value was kept for uncertainties.

Fit_tab_2

3. On the third tab

the SineModel was chosen and all the boxes were left in their default state.

Fit_tab_3

4. The fourth tab was skipped

because we fit the whole range of data.

5. On the fifth tab

labels for the X and Y axis were input and the Display Mirror Axes box was checked.

Fit_tab_5

6. On the last (sixth) tab

the final checks were done and then the 'Do Fit' button was clicked, closing the GUI and running the code in the cell below to perform the fit and display the results.

Fit_tab_6

Figure 2: The results of fitting the noisy sine data to using default settings. Alternative formatting of line styles, markers, etc... can be accessed by editing the code produced by the GUI. Overall plot styling can be adjusted on tab 5.

Learn More

In addition to trying it below if this is a live notebook, you can look at the other examples listed in the Pandas GUI website.

Try It

If you are running this notebook live in binder you can try it here by running the first cell to import the tools and create the data. Then run the cell below to create the GUI. Note: You may want to expand the collapsed instructions to learn more about each tab.